import { getterTree, mutationTree, actionTree } from 'typed-vuex'
import { cloneDeep } from 'lodash-es'

export const state = () => ({
  myliquidity: []
})

export const getters = getterTree(state, {})

export const mutations = mutationTree(state, {
  setMyliquidity(state, myliquidity: any) {
    state.myliquidity = cloneDeep(myliquidity)
  }
})

export const actions = actionTree(
  { state, getters, mutations },
  {
    getMyliquidity({ commit }) {
      commit('setMyliquidity', [{ name: 'aaa' }])
    }
  }
)
